package com.ftg.learn.framework.springframework.core.official.annotation;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 测试 类
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/9/14 上午9:13
 */
public class AnnotationMain {

    public static void main(String[] args) {
        //实例容器
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("springannotation.xml");

        Banana banana = (Banana) applicationContext.getBean("banana");

        System.out.println(banana.getAddress());
    }

}
